package com.bdqn.t350.echarts.echarts.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.List;

@Controller
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("/cloumn")
    public String cloumn() {
        return "cloumn";
    }

    @ResponseBody
    @RequestMapping("/list")
    public Object list() {
        List<String> list = new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");

        List<Integer> shuzi = new ArrayList<>();
        shuzi.add(100);
        shuzi.add(200);
        shuzi.add(250);


        List<List> list1 = new ArrayList();
        list1.add(list);
        list1.add(shuzi);


        return list1;
    }
}
